package com.lsa.skienna.challenge.chap2;

import java.io.FileInputStream;
import java.io.IOException;

import junit.framework.TestCase;

import com.lsa.skienna.challenge.chap2.JollyJumpers.TaskReader;


public class TestJolly extends TestCase{
	public void testJolly() throws IOException{
		TaskReader reader = new TaskReader(new FileInputStream("data/pc2/jolly/seqs.txt"));
		int[] testArray = reader.readNextTask();
		assertTrue(JollyJumpers.isJolly(testArray));
		testArray = reader.readNextTask();
		assertFalse(JollyJumpers.isJolly(testArray));
	}
}
